package com.xinsoft.entity.dto;

import lombok.Data;

import javax.validation.constraints.Positive;
import java.math.BigDecimal;

@Data
public class ErpInStock {
    /**
     * 物料ID
     */
    private Integer materialId;

    /**
     * 数量
     */
    @Positive(message = "数量必须大于0")
    private BigDecimal qty;

    /**
     * 库存批次
     */
    private String batch;

    /**
     * 仓库ID
     */
    private Integer warehouseId;

    /**
     * 库位ID
     */
    private Integer warehItemId;

    /**
     * 源单id
     */
    private Integer sourceId;

    /**
     * 源单明细id
     */
    private Integer sourceItemId;

    /**
     * 源单编码
     */
    private String sourceCode;
}
